package com.example.http.controller;


import com.example.http.annotations.Controller;
import com.example.http.annotations.RequestMapping;

@RequestMapping("/hello")
@Controller
public class HelloController {

    @RequestMapping("/index")
    public String index(String name,String age,String sex){

        System.out.println(1);
        System.out.println(name);
        System.out.println(age);
        System.out.println(sex);
        return "get param:name="+name+";age="+age+";sex="+sex;
    }

    @RequestMapping("/index1")
    public String index1(String id,String name){
        System.out.println(id);
        System.out.println(name);
        return "hello1";
    }
}
